//load an inventory item list
function goToInventoryItem(index) {
	window.location.href='http://localhost:8000/inventory/'+index;
}

function confirmDelete(id, name, beginAtRedirect){
	var answer = confirm("Do you want to delete \""+name+"\" ?");
	if (answer){
		window.location.href = '/inventory/delItem/'+id+'/'+beginAtRedirect+'/';
	}
}

function description_onfocus(ta){
	if (ta.innerHTML == "description..."){
		ta.innerHTML = "";
	}
}

function description_onblur(ta){
	if (ta.innerHTML == ""){
		ta.innerHTML = "description...";
	}
}

